package generator.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

/**
* 
* @TableName users
*/
public class Users implements Serializable {

    /**
    * 
    */
    (message="[]不能为空")
    @ApiModelProperty("")
    private Integer user_id;
    /**
    * 
    */
    @NotBlank(message="[]不能为空")
    @Size(max= 100,message="编码长度不能超过100")
    @ApiModelProperty("")
    @Length(max= 100,message="编码长度不能超过100")
    private String username;
    /**
    * 
    */
    @NotBlank(message="[]不能为空")
    @Size(max= 100,message="编码长度不能超过100")
    @ApiModelProperty("")
    @Length(max= 100,message="编码长度不能超过100")
    private String password;
    /**
    * 
    */
    @Size(max= 100,message="编码长度不能超过100")
    @ApiModelProperty("")
    @Length(max= 100,message="编码长度不能超过100")
    private String name;
    /**
    * 
    */
    @Size(max= 100,message="编码长度不能超过100")
    @ApiModelProperty("")
    @Length(max= 100,message="编码长度不能超过100")
    private String email;
    /**
    * 
    */
    @Size(max= 20,message="编码长度不能超过20")
    @ApiModelProperty("")
    @Length(max= 20,message="编码长度不能超过20")
    private String phone_number;
    /**
    * 
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    @Length(max= 255,message="编码长度不能超过255")
    private String address;
    /**
    * 
    */
    (message="[]不能为空")
    @ApiModelProperty("")
    private Date registration_date;
    /**
    * 
    */
    @NotBlank(message="[]不能为空")
    @Size(max= 50,message="编码长度不能超过50")
    @ApiModelProperty("")
    @Length(max= 50,message="编码长度不能超过50")
    private String status;
    /**
    * 
    */
    (message="[]不能为空")
    @ApiModelProperty("")
    private Date created_at;
    /**
    * 
    */
    (message="[]不能为空")
    @ApiModelProperty("")
    private Date updated_at;

    /**
    * 
    */
    private void setUser_id(Integer user_id){
    this.user_id = user_id;
    }

    /**
    * 
    */
    private void setUsername(String username){
    this.username = username;
    }

    /**
    * 
    */
    private void setPassword(String password){
    this.password = password;
    }

    /**
    * 
    */
    private void setName(String name){
    this.name = name;
    }

    /**
    * 
    */
    private void setEmail(String email){
    this.email = email;
    }

    /**
    * 
    */
    private void setPhone_number(String phone_number){
    this.phone_number = phone_number;
    }

    /**
    * 
    */
    private void setAddress(String address){
    this.address = address;
    }

    /**
    * 
    */
    private void setRegistration_date(Date registration_date){
    this.registration_date = registration_date;
    }

    /**
    * 
    */
    private void setStatus(String status){
    this.status = status;
    }

    /**
    * 
    */
    private void setCreated_at(Date created_at){
    this.created_at = created_at;
    }

    /**
    * 
    */
    private void setUpdated_at(Date updated_at){
    this.updated_at = updated_at;
    }


    /**
    * 
    */
    private Integer getUser_id(){
    return this.user_id;
    }

    /**
    * 
    */
    private String getUsername(){
    return this.username;
    }

    /**
    * 
    */
    private String getPassword(){
    return this.password;
    }

    /**
    * 
    */
    private String getName(){
    return this.name;
    }

    /**
    * 
    */
    private String getEmail(){
    return this.email;
    }

    /**
    * 
    */
    private String getPhone_number(){
    return this.phone_number;
    }

    /**
    * 
    */
    private String getAddress(){
    return this.address;
    }

    /**
    * 
    */
    private Date getRegistration_date(){
    return this.registration_date;
    }

    /**
    * 
    */
    private String getStatus(){
    return this.status;
    }

    /**
    * 
    */
    private Date getCreated_at(){
    return this.created_at;
    }

    /**
    * 
    */
    private Date getUpdated_at(){
    return this.updated_at;
    }

}
